/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

/**
 * <p>Project: javaseapp - T2
 * <p>Powered by webrx On 2021-08-30 12:28:20
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class T2 {
    public static void main(String[] args) {
        var d2 = LocalDate.now();
        System.out.println(d2);
        System.out.println(d2.format(DateTimeFormatter.BASIC_ISO_DATE));
        System.out.println(d2.format(DateTimeFormatter.ISO_DATE));
        System.out.println(d2.format(DateTimeFormatter.ISO_LOCAL_DATE));
        System.out.println(d2.format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")));
        System.out.println(d2.format(DateTimeFormatter.ofPattern("E")));


        var t2 = LocalTime.now();
        t2 = LocalTime.of(12, 33, 32);
        System.out.println(t2);
        var dtf = DateTimeFormatter.ofPattern("HH:mm:ss");
        System.out.println(t2.format(dtf));

        var d3 = LocalDateTime.now();
        var d3f = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss E");
        System.out.println(d3.format(d3f));


    }
}
